﻿<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <div style="width:100%">
        <table id="tbl" style="float:right">
            <tr>
                <td ng-transclude id="body" valign="top"></td>
            </tr>
        </table>
    </div>
    <script>
        $tmp.$s.$watch(function () {
            return $($tmp.$e[0]).find("#body").children().length;
        }, function (n, o) {
            if (angular.isUndefined(n)) return;
            if (n != o) {
                $($tmp.$e[0]).find("#body").children().each(function (i, ele) {
                    var td = $("<td></td>").appendTo($($tmp.$e[0]).find("#tbl tr")[0]);
                    $(ele).appendTo(td[0]);
                });
                 
            }
        });
    </script>
</body>
</html>